/*
Copyright (c) [2019年5月1日] [吴超]
[MBT_studio] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
		 http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
#pragma once

#include <basic_vec.h>
#include "core/属性.h"



EngineAPI_EXPORT bool f_bvh_包围坐标检测(const S_CubeArray* 包围盒, const S_Vec3Array* 坐标, S_Vec3Array* 包含坐标, int32 算法);

EngineAPI_EXPORT bool f_bvh_包围索引检测(const S_CubeArray* 包围盒, const S_Vec3Array* 坐标, S_UI32Array* 包含索引, int32 算法);

EngineAPI_EXPORT bool f_bvh_包围索引坐标(const S_CubeArray* 包围盒, const S_Vec3Array* 坐标, S_iVec3Array* 坐标索引);

EngineAPI_EXPORT bool f_bvh_包围盒自检测(const S_CubeArray* 包围盒, const S_Cube& 坐标, int32 算法);


EngineAPI_EXPORT ivec3	f_bound_体素分辨率(const S_Cube& 包围盒, vec3 单元大小);
EngineAPI_EXPORT void	f_bounds_体素分辨率(const S_CubeArray* 包围盒, const S_Vec3Array* 单元大小, S_iVec3Array* 分辨率);







